package com.jmu.medicineknows.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jmu.medicineknows.dto.SaleRecordsDto;
import com.jmu.medicineknows.entity.Result;
import com.jmu.medicineknows.entity.SaleRecord;
import com.jmu.medicineknows.entity.ShoppingCart;

/**
 * @author ACER
 */
public interface SaleRecordService extends IService<SaleRecord> {
    /**
     * 购买药品
     * @param saleRecord
     * @return
     */
    Result orderAdd(SaleRecord saleRecord);
    Result addToCart(ShoppingCart shoppingCart);
    Result getRecords(SaleRecordsDto saleRecordsDto);
    Result countPay(SaleRecordsDto saleRecordsDto);
}
